<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<script>
	var buddies = [{friend: "a"}, {friend: 'b'}];
	alert(buddies.length);
	for (var i = 0; i < buddies.length; i++) {
		alert(buddies[i].friend);
	}
</script>
</head>
<body>
	<%=id %>
</body>
</html>